﻿using Antlr.Runtime;
using System;

namespace LPlusPlus
{
    partial class LPPLexer
    {
        public int numErrors = 0;

        public void ImprimirTokens(String lexema, String token)
        {
            Console.WriteLine("Lexema: " + lexema + " ," + "Token: " + token);
        }

        public override void ReportError(RecognitionException e)
        {
            base.ReportError(e);
            Console.WriteLine("Error en lexer en linea: " + e.Line + ":" + e.CharPositionInLine + "->" + e.Character);
            numErrors++;
        }
    }
}
